#include <stdio.h>

int main(int argc, char const *argv[])
{
    int num = 1234567890;
    printf("%x\n",(((num >> 24)&0xff)|((num >> 8)&0xff00)|((num << 8)&(0xff0000))|(num<<24)));
    
    int count = 0;
    int i = 0;
    while(i <= 32)
    {
        if(num & 1)
            count++;

        num = num >> 1;
        i++;
    }
    printf("%d\n",count);
    return 0;
}
